home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_107_ModelessDialog < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.8 KB  |  81 lines

  1. /* %filename% -- modeless dialog methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    This module overrides the AppMaker-generated code in z%dlogname%.%        %*/
  5. /*    It provides a place for you to add your own code and still be able to    */
  6. /*    generate code for new changes to the user interface.  This module will    */
  7. /*    not be regenerated by AppMaker unless you delete it.  Its superclass,    */
  8. /*    z%dlogname%, may be regenerated to handle user interface changes%        %*/
  9. /*    without losing your hand-coded changes to this module.                    */
  10.  
  11. #include <Commands.h>
  12. #include <Global.h>
  13. #include <TBUtilities.h>
  14. #include <CBartender.h>
  15. #include "ResourceDefs.h"
  16. %for each item gen include%
  17. #include "%dlogname%.h"
  18.  
  19. extern    CBartender        *gBartender;    /* The menu handling object */
  20.  
  21. %for each item gen defineItem%
  22.  
  23. /*----------*/
  24. C%dlogname%    *MakeNew%dlogname%    (CDirectorOwner        *aSupervisor)
  25. {
  26.     C%dlogname%        *dialog;
  27.  
  28.     dialog = NULL;
  29.     TRY {
  30.         dialog = new C%dlogname%;
  31.         dialog->I%dlogname% (aSupervisor);
  32.     } CATCH {
  33.         ForgetObject (dialog);
  34.     } ENDTRY;
  35.  
  36.     return (dialog);
  37.  
  38. } /* MakeNew%dlogname% */
  39.  
  40. /*----------*/
  41. void    C%dlogname%::I%dlogname%    (CDirectorOwner        *aSupervisor)
  42. {
  43.     inherited::IZ%dlogname% (aSupervisor);
  44.  
  45.     // any additional initialization for your dialog
  46.  
  47. } /* I%dlogname% */
  48.  
  49. %for each item gen auxiliaryMethod%
  50. /*----------*/
  51. void    C%dlogname%::UpdateMenus    (void)
  52. {
  53.     inherited::UpdateMenus ();
  54.  
  55. } /* UpdateMenus */
  56.  
  57. /*----------*/
  58. void    C%dlogname%::DoCommand    (long        theCommand)
  59. {
  60.     switch (theCommand) {
  61.         %for each item gen DoCommand%
  62.  
  63.         default:
  64.                 inherited::DoCommand (theCommand);
  65.             break;
  66.     } /* switch */
  67.  
  68. } /* DoCommand */
  69.     
  70. /*----------*/
  71. void    C%dlogname%::ProviderChanged%    %(CCollaborator    *aProvider,
  72.                                          long            reason,
  73.                                          void*            info)
  74.  
  75. {
  76.     %for each item gen ProviderChanged%
  77.  
  78. } /* ProviderChanged */
  79.  
  80. /* %filename% */
  81.